home *** CD-ROM | disk | FTP | other *** search
- Path: isar.de!news
- From: imd@m.isar.de (Thomas Doerfler)
- Newsgroups: comp.sys.m68k
- Subject: Re: 332 Interrupt programming
- Date: Mon, 01 Apr 1996 09:02:41 GMT
- Organization: IMD
- Message-ID: <4jo2ct$7d8@nixe.isar.net>
- References: <4jj91i$15i8@pulp.ucs.ualberta.ca>
- NNTP-Posting-Host: imd.m.isar.de
- X-Newsreader: Forte Free Agent 1.0.82
-
- wbortz@gpu.srv.ualberta.ca (Wade Bortz) wrote:
-
- > I've been struggling with this for a month or so now - can anyone
- >recomend some resources which would explain interrupt programming on the
- >332 in C? Motorola has not been of much help, neither has SDSI, whose C
- >compiler I am using.
- > I want to run an interrupt function once every second. I'm using
- >the #pragma interrupt compiler directive for the function, and have set
- >PICR and PITR, and loaded the address of my interrupt function into the
- >proper vector in the exception table. What am I missing here? Any help
- >would be greatly appreciated.
-
- Well, there shouldn't be missing much...
- The steps you did not mention were
- - lowering the interrupt mask in the CPU's status register (after
- reset all interrupts are masked, write 0x2000 to the SR to allow all
- interrupts)
- - you should also check, that there is a value greater than zero in
- the IARB field of the SIM MCR. Recommended value for this field: 0x0f.
-
- What does your system do? does it crash? or simply do nothing?
-
- Bye, Thomas.
-
- --------------------------------------------
- IMD Ingenieurbuero fuer Microcomputertechnik
- Thomas Doerfler Elilandstrasse 12
- D-81547 Muenchen Germany
- email: td@imd.m.isar.de
-
-